import asyncio
import websockets


async def test():
    async with websockets.connect('ws://192.168.10.69:7771/') as websocket:
        req = 'Hello'
        await websocket.send(req)
        response = await websocket.recv()
        print(req, '>>>>', response)

if '__main__' == __name__:
    asyncio.get_event_loop().run_until_complete(test())
